package com.sy.interceptor;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.MethodFilterInterceptor;
import com.sy.listener.MyListener;

public class MyInterceptor3 extends MethodFilterInterceptor {

	private static final long serialVersionUID = -3601239097464796818L;

	@Override
	protected String doIntercept(ActionInvocation invocation) throws Exception {

		invocation.addPreResultListener(new MyListener());
		
		System.out.println("interceptor3");
		
		String result=invocation.invoke();
		
		System.out.println("finish3");
		
		return result;
	}

}
